var express = require('express');
var router = new express.Router();
var Mock = require('mockjs')
var undetermined = Mock.mock({
  'list|5': [{
    username:'@cname',
    'sex|1':['male','female'],
    bp:'@natural(6500,8000)',
    op:'@natural(2500,3000)',
  }]
})
router.get('/und', function (req, res) {
  res.send(undetermined.list);
})
router.get('/und_add',function (request,response) {
  console.log(request.query);
  undetermined.list.unshift(request.query)
  response.send(
    {
      und: undetermined.list,
      flag:true
    }
  )
})
module.exports= router;
